package UI;




import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import Commnads.GuiCommands;


/**
 * Servlet implementation class TryServ
 */
public class StartInitServ extends HttpServlet {
	private static final long serialVersionUID = 1L;
    private GuiCommands command;   
    public StartInitServ() 
    {
        super();
    }
    
    public StartInitServ(GuiCommands com) 
    {
    	command = com;
    }
    
	/**
	 * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
	 */
    public void service(HttpServletRequest req, HttpServletResponse resp) throws IOException 
    {
    		command.startInitialization();
    		resp.sendRedirect("/pre.jsp");
    }

}
